package com.example.springbootquartz.service;

import com.example.springbootquartz.vo.JobInfo;

import java.util.List;

/**
 * @author zhanpengguo
 * @date 2019-08-21 16:59
 */
public interface JobService {

    /**
     * 添加
     * @param jobInfo
     * @throws Exception
     */
    void addJob(JobInfo jobInfo) throws Exception;

    /**
     * 暂停
     * @param jobInfo
     * @throws Exception
     */
    void pauseJob(JobInfo jobInfo) throws Exception;

    /**
     * 恢复
     * @param jobInfo
     * @throws Exception
     */
    void resumeJob(JobInfo jobInfo) throws Exception;

    /**
     * 更新
     * @param jobInfo
     * @throws Exception
     */
    void rescheduleJob(JobInfo jobInfo) throws Exception;

    /**
     * 删除
     * @param jobInfo
     * @throws Exception
     */
    void deleteJob(JobInfo jobInfo) throws Exception;

    /**
     * 查找
     * @throws Exception
     */
    List<JobInfo> queryJob() throws Exception;
}
